import { ColumnButton } from "./ColumnButton"
import { POWERS } from "../../Consts";
export class ModifyButton {
  constructor(h, params, click) {
    const { UPDATE } = POWERS;
    const text = UPDATE.text;
    const icon = UPDATE.icon;
    return new ColumnButton(h, text, icon)
      .click(() => click && click(params.row.id, params.row))
      .build()
  }
}
